package com.example.demo.domain.conts;

public final class ConstDataType {

	public static final String	STRING			= "1";	// GWT已处理

	public static final String	DOUBLE			= "2";	// GWT已处理

	public static final String	DATETIME		= "3";	// GWT已处理

	public static final String	BOOLEAN			= "4";	// GWT已处理

	public static final String	INTEGER			= "5";	// GWT已处理

	public static final String	TERM			= "6";	// GWT已处理

	public static final String	MONEY			= "7";	// GWT已处理

	public static final String	CODE			= "8";

	public static final String	PARAMETER		= "9";	// GWT已处理

	public static final String	INTEGERLIST		= "10";	// GWT已处理

	public static final String	STRINGLIST		= "11";	// GWT已处理

	public static final String	LONG			= "12";	// GWT已处理

	public static final String	TEXT			= "13";	// GWT已处理

	public static final String	MLSTRING		= "14";	// GWT已处理

	public static final String	MMONEY			= "15";

	public static final String	LONGLIST		= "16";

	public static final String	IMAGELIST		= "17";

	public static final String	REFPARAMETER	= "18";

	public static final String	PARTY			= "19";

	public static final String	PERCENTAGE		= "20";

	public static final String	USER			= "21";

	public static final String	BRANCH			= "22";

	public static final String	DATE			= "23";

	public static final String	TIME			= "24";

	public static final String	BUTTON			= "25";

	public static final String	CHECKBOX		= "26";

	/**
	 * 自定义类型
	 */
	public static final String	DEFINE			= "27";

	/**
	 * 关联自定义,类型于多级联动
	 */
	public static final String	REFDEFINE		= "28";

	/**
	 * 用于自定义器件，这种类型的器件主要在declForm中使用，具体由df调用者实现
	 */
	public static final String	CUST			= "29";

	public static final String	LABEL			= "30";
	public static final String  JOSNLIST        = "31";


	public static String getDataTypeName(String type) {
		if("1".equals(type)){
			return "String";
		}
		if("2".equals(type)){
			return "Double";
		}
		if("3".equals(type)){
			return "DateTime";
		}
		if("4".equals(type)){
			return "Boolean";
		}
		if("5".equals(type)){
			return "Integer";
		}
		if("6".equals(type)){
			return "Term";
		}
		if("7".equals(type)){
			return "Money";
		}
		if("8".equals(type)){
			return "Code";
		}
		if("9".equals(type)){
			return "Parameter";
		}
		if("10".equals(type)){
			return "IntegerList";
		}
		if("11".equals(type)){
			return "StringList";
		}
		if("12".equals(type)){
			return "Long";
		}
		if("13".equals(type)){
			return "Text";
		}
		if("14".equals(type)){
			return "MLString";
		}
		if("15".equals(type)){
			return "MMoney";
		}
		if("16".equals(type)){
			return "LongList";
		}
		if("17".equals(type)){
			return "ImageList";
		}
		if("18".equals(type)){
			return "RefParameter";
		}
		if("19".equals(type)){
			return "Party";
		}
		if("20".equals(type)){
			return "Percentage";
		}
		if("21".equals(type)){
			return "User";
		}
		if("22".equals(type)){
			return "Branch";
		}
		if("23".equals(type)){
			return "Date";
		}
		if("24".equals(type)){
			return "Time";
		}

		return type + "";
	}
}
